﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style11
        {
            text-decoration: none;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div style="">
    <img src="images/1.jpg" alt="ac" />
    Địa ốc vừa đăng
    </div>
    <div>
        <div class="noidung1">
            <asp:DataList ID="dtlTintuc" runat="server" 
                onitemdatabound="dtlTintuc_ItemDataBound" style="margin-right: 21px">
                <ItemTemplate>
                    <div class="imgcontent">
                        <asp:Image ID="imgHinh" runat="server" Height="160px" ImageAlign="Top" 
                            Width="180px" />
                    </div>
                    <div class="textcontent">
                        <p style="color:Blue; font-weight:bold;" class="tieude">
                           
                            <asp:HyperLink ID="hpltieude" runat="server">Tiêu đề</asp:HyperLink>
                        </p>
                        <asp:Label ID="lblNoidungtomtat" runat="server" Text="Nội dung tóm tắt"></asp:Label>
                    </div>
                    
                </ItemTemplate>
            
            
            </asp:DataList>    
        </div>
        <!-- bat dau vung tim kiem thong tin dia oc-->
        <div class="vungtimkiem1">
            <div style="color:Gray; padding: 10px 0px 10px 0px; text-align:center">TÌM KIẾM ĐỊA ỐC</div>
            <div>
                
                <asp:TextBox ID="txttukhoa" Text="Từ khóa tìm kiếm ..." CssClass="timkiem_form" runat="server" Width="145" Height="20"/>
                <asp:RequiredFieldValidator ID="rqtxttukhoa" runat="server" ControlToValidate="txttukhoa" Display="Dynamic" Font-Size="8" ForeColor="Red">(*)</asp:RequiredFieldValidator>                
                <span></span>
                <asp:DropDownList ID="ddltinh_tp" runat="server" width="150" Height="23">
                    <asp:ListItem Enabled="true" Text="chọn tỉnh/ thành phố ..." Value="0"/>

                    </asp:DropDownList>                
                <asp:RequiredFieldValidator ID="rqtinh_tp" runat="server" ControlToValidate="ddltinh_tp" Display="Dynamic" Font-Size="8" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                <span></span>
                <asp:DropDownList ID="ddlloaitindang" runat="server" width="150" Height="23">
                    <asp:ListItem Enabled="true" Text="chọn loại tin đăng ..." Value="0"/>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rqloaitindang" runat="server" ControlToValidate="ddlloaitindang" Display="Dynamic" Font-Size="8" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                
                <span></span>
                <asp:DropDownList ID="ddlloaidiaoc" runat="server" width="150" Height="23">
                    <asp:ListItem Enabled="true" Text="chọn loại địa ốc ..." Value="0"/>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rqloaidiaoc" runat="server" ControlToValidate="ddlloaidiaoc" Display="Dynamic" Font-Size="8" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                <span></span>
                
                <asp:DropDownList ID="ddlbanggia" runat="server" width="150" Height="23">
                    <asp:ListItem Enabled="true" Text="chọn bảng giá ..." Value="0"/>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rqbanggia" runat="server" ControlToValidate="ddlbanggia" Display="Dynamic" Font-Size="8" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                

                <p style="text-align:center"><asp:Button ID="btntimkiem" runat="server" Width="100" Text="Tìm Kiếm"/></p>
            </div>    
            
        </div>
        <!-- ket thuc vung tim kiem -->
        <!-- Quang cao-->
        <div style="height:10px; clear:both">&nbsp;</div>
        <div id="VungQC7">
        <img src="images/07_ctst_banner_620x90.jpg" width="100%" height="60px" alt="" />
        </div>
        <!-- ket thuc -->
       
                
        <div class="noidung2">
        <!-- Tieu te -->
        <div class="imgtitle"><img src="images/1.jpg" alt="" /> Tin tức địa ốc </div>
        <img src="images/line.jpg" width="100%" alt="" height="3px"/>
        <!-- ket thuc -->
        <asp:DataList ID="dtltintuccu" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" Width="699px">
        <ItemTemplate>
            <div class="noidung2_1">      
                
                <div class="imgnoidung2">
                    <asp:Image ID="imgHinh" runat="server" Height="90px" 
    ImageAlign="Top" Width="90px" />
                </div>
                <div class="textnoidung2">
                    <p style="color:Blue; font-size:13px; font-weight:bold;">
                        <asp:HyperLink ID="hplTieudecon" runat="server">Tiêu đề</asp:HyperLink>
                    </p>
                    <asp:Label ID="lblNoidungcon" runat="server" Text="Nội dung"></asp:Label>
                </div>      
           
            </div> 

            
        </ItemTemplate>
        </asp:DataList>

        <!-- Tieu te -->
        <div class="imgtitle"><img src="images/1.jpg" alt="" /> Mua Địa Ốc </div>
        <img src="images/line.jpg" width="100%" alt="" height="3px"/>
        <!-- ket thuc -->
        <asp:DataList ID="dtltintuccon" runat="server" 
                onitemdatabound="dtltintuccon_ItemDataBound" RepeatColumns="2" 
                RepeatDirection="Horizontal" Width="699px">
        <ItemTemplate>
            <div class="noidung2_1">      
                
                <div class="imgnoidung2">
                    <asp:Image ID="imgHinh" runat="server" Height="90px" 
    ImageAlign="Top" Width="90px" />
                </div>
                <div class="textnoidung2">
                    <p style="color:Blue; font-size:13px; font-weight:bold;">
                        <asp:HyperLink ID="hplTieudecon" runat="server">Tiêu đề</asp:HyperLink>
                    </p>
                    <asp:Label ID="lblNoidungcon" runat="server" Text="Nội dung"></asp:Label>
                </div>      
           
            </div> 

            
        </ItemTemplate>
        </asp:DataList>
        
        <!-- Tieu te -->
        <div class="imgtitle"><img src="images/1.jpg" alt="" /> Mua Địa Ốc </div>
        <img src="images/line.jpg" width="100%" alt="" height="3px"/>
        <!-- ket thuc -->
        <asp:DataList ID="dtltintuc2" runat="server" 
                onitemdatabound="dtltintuc2_ItemDataBound" RepeatColumns="2" 
                RepeatDirection="Horizontal" Width="699px">
        <ItemTemplate>
            <div class="noidung2_1">      
                
                <div class="imgnoidung2">
                    <asp:Image ID="imgHinh" runat="server" Height="90px" 
    ImageAlign="Top" Width="90px" />
                </div>
                <div class="textnoidung2">
                    <p style="color:Blue; font-size:13px; font-weight:bold;">
                        <asp:HyperLink ID="hplTieudecon" runat="server">Tiêu đề</asp:HyperLink>
                    </p>
                    <asp:Label ID="lblNoidungcon" runat="server" Text="Nội dung"></asp:Label>
                </div>      
           
            </div> 

            
        </ItemTemplate>
        </asp:DataList>
        <!-- Tieu te -->
        <div class="imgtitle"><img src="images/1.jpg" alt="" /> Thuê Địa Ốc</div>
        <img src="images/line.jpg" width="100%" alt="" height="3px"/>
        <!-- ket thuc -->
        
        <asp:DataList ID="dtltintuc3" runat="server" 
                onitemdatabound="dtltintuc3_ItemDataBound" RepeatColumns="2" 
                RepeatDirection="Horizontal" Width="699px">
        <ItemTemplate>
            <div class="noidung2_1">      
                
                <div class="imgnoidung2">
                    <asp:Image ID="imgHinh" runat="server" Height="90px" 
    ImageAlign="Top" Width="90px" />
                </div>
                <div class="textnoidung2">
                    <p style="color:Blue; font-size:13px; font-weight:bold;">
                        <asp:HyperLink ID="hplTieudecon" runat="server">Tiêu đề</asp:HyperLink>
                    </p>
                    <asp:Label ID="lblNoidungcon" runat="server" Text="Nội dung"></asp:Label>
                </div>      
           
            </div> 

            
        </ItemTemplate>
        </asp:DataList>
              
        </div>
    </div>
</asp:Content>

<asp:Content ID="loginbody" runat="server" ContentPlaceHolderID="vunglogin">
    <%if (Session["taikhoan"] == null)
      {
     %>
     <div class="isLogin">
        <asp:Label ID="Label1"  runat="server" Font-Size="10">Tài khoản</asp:Label>
        <asp:TextBox runat="server" ID="txttaikhoan" CssClass="taikhoan_login" Width="140"/>
        <asp:RequiredFieldValidator ID="rqtxttaikhoan" runat="server" ControlToValidate="txttaikhoan" Display="Dynamic" Font-Size="8">
            <font color="red">(*)</font>
        </asp:RequiredFieldValidator>
        <asp:Label ID="Label2" runat="server" Font-Size="10"><br/>Mật khẩu<br/></asp:Label>
        <asp:TextBox ID="txtmatkhau" TextMode="Password" runat="server" CssClass="taikhoan_login" width="140"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rqtxtmatkhau" runat="server" ControlToValidate="txtmatkhau" Display="Dynamic" Font-Size="8">
        <font color="red">(*)</font>
        </asp:RequiredFieldValidator>
        <br />
        <div style="text-align: center">
        <asp:Button ID="btndangnhap" runat="server" CssClass="taikhoan_login" 
                Text="Đăng Nhập" OnClick="btndangnhap_Click" Width="81px" />
        </div>
        <div>
            <a href="dangky.aspx" title="Đăng ký tài khoản">Đăng ký</a>
        </div>
     </div>
    <%
      }
      else
      {
          %>
          <div class='isloginsucc'>
              
              <div class='welcomeuser'>
                    Chào, <%= Session["taikhoan"] %>
              </div>
              <div class='thoat'>
                    <a href="xldangxuat.aspx" class="style11" style="color:Gray">Thoát</a>
              </div>
              <div>
                    <a href="CapNhatKhachHang.aspx" class="style11" style="color:Gray">Hồ Sơ Cá Nhân</a>
              </div>
              
          </div>         
          <div>
            <img src="images/line.jpg" width="180" height="1" />
          </div>
          <%
      }
    %>
</asp:Content>
<asp:Content ID="HinhQC2" runat="server" ContentPlaceHolderID="Vung2">
    <img src="images/tuyendung.jpg" alt="tuyendung.jpg" width="190"/>
</asp:Content>

